
    <table class="table table-striped table-bordered" id="sample_1">
        <thead>
            <tr>
                <th style="width: 100px">録画日時</th>
                <th>期限(時間)</th>
                <th style="width: 190px;">ファイル名</th>
                <th style="width: 100px">ファイルサイズ</th>
                <th>カメラ名</th>
                <th>お客様名</th>
                <th>物件名</th>
                <th style="width: 85px;"></th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($cameras as $key => $camera): ?>
                <tr class="odd gradeX">
                    <td><?php echo $camera['records']['StartDate'] ?></td>
                    
                    <td><?php echo $camera['records']['time_duration']?></td>
                    <td><?php echo $camera['records']['RecPath'] ?></td>
                    <td>
                    <?php 
                    //var_dump(PATH_ROOT.'video'.DS.$camera['customers']['CustName']);
                    if(file_exists(PATH_ROOT.'video'.DS.$camera['records']['RecPath'])){
                        echo round(filesize(PATH_ROOT.'video'.DS.$camera['records']['RecPath'])/(1024))."KB" ;
                    }else{
                        echo "not exists";
                    }
                    ?>
                    </td>
                    <td><?php echo $camera['cameras']['CamName']?></td>
                    <td><?php echo $camera['customers']['CustName']?></td>
                    <td><?php echo $camera['buildings']['BuildName']?></td>
                    <td>
                        <button class="btn  btn-warning btn_view_videos" type="button" data-url="<?php  echo $this->Html->url(array("controller" => "see_file","action" => "view",$camera['records']['Id']));?>" onclick="window.open('<?php  echo $this->Html->url(array("controller" => "see_file","action" => "view",$camera['records']['Id']));?>','', 'scrollbars=yes,resizable=yes,width=530,height=330');">
                              <i class="icon-eye-open"></i> 
                        </button>
                        <div class="btn btn-danger">
                            <a style="color:#fff" href="<?php echo $this->Html->url(array("controller" => "see_file", "action" => "delete", $camera['records']['Id'],1,$camera_id)); ?>" >
                                <i class="icon-remove icon-white"></i> 
                            </a>
                        </div>
                    </td>

                </tr>
            <?php endforeach; ?>

        </tbody>
    </table>
    <?php echo $markup ?>
